updateiconcache: Static analysis fixes
authorMatthias Clasen <mclasen@redhat.com>
Mon, 3 May 2021 11:36:34 +0000 (07:36 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 3 May 2021 11:44:38 +0000 (07:44 -0400)
tools/updateiconcache.c

index 49732156f6fc94bfd6d6d10ab3320dcabe8e09a1..1618a6e40af4532740b366b295fcbf80a1747cc2 100644 (file)
@@ -1007,8 +1007,7 @@ get_image_meta_data_size (Image *image)
 
               for (i = 0; data->display_names[i]; i++)
                 {
-                  int poolv;
-                  if ((poolv = find_string (data->display_names[i])) == 0)
+                  if (find_string (data->display_names[i]) == 0)
                     {
                       data->size += ALIGN_VALUE (strlen (data->display_names[i]) + 1, 4);
                       /* Adding the string to the pool with -1